package com.atguigu.edu2021.mock.bean;

import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 题目 题目
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class TestQuestionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目内容
     */
    private String questionTxt;

    /**
     * 课程id
     */
    private Long chapterId;

    /**
     * 视频id
     */
    private Long courseId;

    /**
     * 题目类型
     */
    private Long questionType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 发布者id
     */
    private Long publisherId;

    /**
     * 是否删除
     */
    private String deleted;


    @TableField(exist = false)
    List<KnowledgePoint> knowledgePointList;

    @TableField(exist = false)
    List<TestQuestionOption> testQuestionOptionList;

    @TableField(exist = false)
    private BigDecimal score;




    @Override
    public String toString() {
        return "TestQuestionInfo{" +
        "id=" + id +
        ", questionTxt=" + questionTxt +
        ", chapterId=" + chapterId +
        ", courseId=" + courseId +
        ", questionType=" + questionType +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", publisherId=" + publisherId +
        ", deleted=" + deleted +
        "}";
    }
}
